//
//  Seach_FiltrateAttributeSup_CollectionViewCell_WX.m
//  ZITHER
//
//  Created by weixin on 2019/3/26.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Seach_FiltrateAttributeSup_CollectionViewCell_WX.h"

@implementation Seach_FiltrateAttributeSup_CollectionViewCell_WX

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = RandomColor;
        [self addSubview:self.TB];
        
        [self.TB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.equalTo(self).offset(0);
            make.height.mas_equalTo(kScreenH-NaviHeight-40-100-kBottomSafeHeight);
        }];
        
    }
    return self;
}

-(void)setIndexTbv:(NSInteger)indexTbv{
    _indexTbv = indexTbv;
    
    self.TB.indexTbv = indexTbv;
}

- (Seach_FiltrateAttributeSup_Tbv_WX *)TB{
    if (_TB) {
        return _TB;
    }
    
    _TB = [[Seach_FiltrateAttributeSup_Tbv_WX alloc]initializeFrame:CGRectMake(0, 0, 1, 1) isMj:0 isEstimatedRowHeight:NO addRegisterNib:@[@"Seach_FiltrateAttributeSup_Cell_WX"]];
    
    return _TB;
}

@end
